package com.bowos.zmado.model;

import java.util.List;

import com.orifine.orm.annotation.Column;
import com.orifine.orm.annotation.Id;
import com.orifine.orm.annotation.Length;
import com.orifine.orm.annotation.NotNull;
import com.orifine.orm.annotation.Table;
import com.orifine.orm.information.AutoIncrementInfo;
import com.orifine.orm.model.ColumnModel;

/**
 * 首页分区
 * @author Administrator
 *
 */
@Table
public class Area {
	@Id
	@Column
	private Integer id;
	
	public static final ColumnModel columnId = new ColumnModel().setInformation(new AutoIncrementInfo(1000,5));
	
	/**
	 * 分区名称
	 */
	@Column
	@NotNull
	@Length(100)
	private String name;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	private List<Forum> forums;

	public List<Forum> getForums() {
		return forums;
	}

	public void setForums(List<Forum> forums) {
		this.forums = forums;
	}
}
